/*
 * @Description: 
 * @Author: Liu Kunpeng
 * @Date: 2021-03-12 19:14:51
 */
import request from '@/api/request'
//登录
export function loginApi(data){
    return request({
        url:'/scanning/security/login',
        method: 'post',
        params: data
    })
}
//退出
export function logoutApi(){
    return request({
        url:'/scanning/security/logout',
        method: 'post',
    })
}
//修改密码
export function modifyPassword(data){
    return request({
        url: '/admin/acl/index/updatePassword',
        method: 'get',
        params: data
    })
}
//获取用户信息
export function getUserInfoApi(){
    return request({
        url: '/admin/acl/index/userInfo',
        method: 'get'
    })
}


//获取病人数量
export function getPatientCountApi(){
    return request({
        url: '/consumer/statistics/getAllPatsCount',
        method: 'get'
    })
}
//步态getall+三维getall+高级筛选
export function advancedQueryApi(data){
    return request({
      url: '/consumer/statistics/queryAllPats',
      method: 'get',
      params: data
    })
}
//三维getall+高级筛选（废弃）
export function getAllPatientApi(query){
    return request({
        url:'/consumer/statistics/queryAllThrees',
        method: 'get',
        params: query
    })
}


//下载步态PDF接口
export function downloadGaitApi(id){
    return request({
        url: '/scanning/downloadFile/downloadGaitPdf/' + id,
        method: 'get',
        responseType: 'blob'
    })
}
//下载平衡PDF接口
export function downloadBalanceApi(id){
    return request({
        url: '/scanning/downloadFile/downloadBalancePdf/' + id,
        method: 'get',
        responseType: 'blob'
    })
}
//下载三维PDF接口
export function downloadThreePdfApi(id){
    return request({
        url: '/scanning/downloadFile/downloadThreePdf/' + id,
        method: 'get',
        responseType: 'blob'
    })
}

//批量下载步态报告压缩包
export function batchDownload1Api(data){
    return request({
        url: '/scanning/downloadFile/footZipFile/batchFootZipFile',
        method: 'get',
        params: data,
        responseType: 'blob'
    })
}
//批量下载平衡报告压缩包
export function batchDownload2Api(data){
    return request({
        url: '/scanning/downloadFile/footZipFile/batchBalanceZipFile',
        method: 'get',
        params: data,
        responseType: 'blob'
    })
}
//批量下载三维报告压缩包
export function batchDownload3Api(data){
    return request({
        url:"/scanning/downloadFile/threeZipFile/batchThreeZipFile",
        method:"get",
        params:data,
        responseType:'blob'
    })
}

//批量下载源文件压缩包
export function downloadBatchOriginalFootZipFileApi(data){
    return request({
        url:'/scanning/downloadFile/footZipFile/downloadBatchOriginalFootZipFile',
        method:'get',
        params:data,
        responseType:'blob',
    
    })
}